package com.instagram.instadownloader;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.webkit.WebView;
import android.widget.Button;
import com.vine.vinedownloader.R;

public class SearchActivity extends Activity {
	WebView wvSearch;
	Button btnBack;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);

		setContentView(R.layout.searchview);
		
		findViewById(R.id.back).setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				SearchActivity.this.finish();
			}
		});
		
		wvSearch = (WebView) findViewById(R.id.wvSearch);
		String query = getIntent().getStringExtra("keyword");
		String url = "https://www.google.com/search?q=" + query;
		wvSearch.loadUrl(url);

	}
}
